<script setup lang="ts">
import { ref } from 'vue';


const age = ref(18)
const Person = ref({
  name:'张三',
  age:18
})
const changeAge = ()=>{
  Person.value.age++
  

}
</script>
  

<template>
  <div class="app-page">
    <div>{{ age }}</div>
    <div>姓名：{{ Person.name }},年龄：{{ Person.age }}</div>
    <button @click="changeAge">年龄增加</button>
  </div>
</template>

<style lang="css" scoped></style>
